<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    姓名：<span th:text="${name}"></span><br>
    年龄：<span th:text="${age}"></span>
    <span th:if="${age >= 18}">你是成年人</span>
    <span th:if="${age < 18}">你是儿童</span>
    <hr>

    <table border="1" width="80%">
        <thead>
            <tr><th>编号</th><th>姓名</th><th>生日</th><th>电话</th><th>操作</th></tr>
        </thead>

        <tbody>
            <tr th:each="s : ${list}">
                <td th:text="${s.id}">
                <td th:text="${s.name}"></td>
                <td th:text="${s.birthday}">
                <td th:text="${s.phone}"></td>
                <td>
                    <a th:href="@{/del(id=${s.id})}">删除</a>
                    <a href="#">修改</a>
                </td>
            </tr>
        </tbody>
    </table>
    <a href="/leaf/add.html">添加</a>
</body>
</html>